public class Person {

    private String name;
    private int age;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    // 方法重载
    public void setName(String firstName ,String lastName) {
        this.name = firstName+","+lastName;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }






    // 构造方法
    public  Person(String name, int age){
        this.name = name;
        this.age = age;
    }

    // 构造方法
    public  Person(){
        this.name = "Liu Bo";
        this.age =32;
    }


}
